home *** CD-ROM | disk | FTP | other *** search
- Path: news1.channel1.com!usenet
- From: ejack@user1.channel1.com (Eric D. Jackson)
- Newsgroups: comp.sys.amiga.networking
- Subject: Re: FlushLibs
- Date: 15 Feb 1996 16:27:02 GMT
- Organization: Channel 1 Communications
- Message-ID: <2242.6619T633T1605@user1.channel1.com>
- References: <4fuuic$a8n@news.uni-paderborn.de>
- NNTP-Posting-Host: remote30.channel1.com
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- >: >As the OS flushes libs automatically in low memory situations, you
- >: >normally only need it to see, if a program has memory leaks.
-
- >: >Using is simple, just starting it. If i'm not wrong, it just allocates a
- >: >huge amount of memory. If exec can't fulfill the request, it flushes all
- >: >unused librarys from the system.
-
- >: Thank you for your reply. I have another question. What is a memory leak?
-
- >If a program allocates memory, but frees only a part of it, some amount
- >of memory stays allocated. To see, if you free all memory, you do the
- >following:
-
- >avail flush total (Flushes everything, that is not used, and gives you
- > the total amount of free memory)
-
- >program (Start your program, play with it an then quit it)
-
- >avail total flush (The same as above, there should be no difference in
- > the output).
-
- >The reason for the flush is, if a program opens a library, the library
- >stays in memory, until its flushed.
-
- >--
- >Mario Kemper magick@bundy.lip.owl.de
- >University of Paderborn (Germany). magick@uni-paderborn.de
- >
-
- Mario,
- Thank you very much for a very clear explanation! I'm guessing that the reason
- it's dicussed in the Thor group is because people want to flush out the socket
- library. Can this be done while you're online so that you are able to freely
- run other programs after you've flushedlibs?
-
- Eric
-
- **************************************************************************
- * *
- * Eric D. Jackson THOR 2.22 *
- * *
- * ejack@user1.channel1.com Amiga 40000/040 *
- * *
- * *Shapeshifter MacEmulator* *
- * *
- * ***Jazz Lives!*** *
- * *
- **************************************************************************
-
-